<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="author" content=""/>
<title>系统登陆</title>
<link href="${pageContext.request.contextPath}/login/css/style.css" rel="stylesheet" type="text/css" />
<script src="${pageContext.request.contextPath}/static/js/jquery-1.11.0.min.js"></script>
<script src="${pageContext.request.contextPath}/static/layer/2.4/layer.js"></script>


</head>
<body>
<div id="web">
<p style="height:180px;"></p>
<p align="center"><img src="${pageContext.request.contextPath}/login/images/logzi.png" /></p>
<p style="height:40px;"></p>
<div class="login">
   <div class="banner">
   <iframe id="frame_banner" src="${pageContext.request.contextPath}/login/sban/banner.html" height="218" width="100%"  allowtransparency="true" title="test"  scrolling="no" frameborder="0"></iframe>
   </div>
  <form action="${pageContext.request.contextPath}/back/user/login.htm" method="post" onsubmit="return checkForm()">
   <div class="logmain">
      <h1>&nbsp;</h1>
      <div class="logdv">
         	<span class="logzi">账 号：</span>
        	<input name="username" type="text" id="username" class="ipt" />
      </div>
      <div class="logdv">
      		<span class="logzi">密 码：</span>
        	<input name="password" type="password" id="password" class="ipt" />
      </div>
      <div align="center">
        	<span><font color="red" id="error">${errorMessage}</font></span>
      </div>
      <div class="logdv">
        	<p class="logzi">&nbsp;</p>
        	<a href="#" class="more">忘记密码</a>
        	<input name="" type="checkbox" value=""  class="cex"/>记住密码
      </div>
      <div class="logdv" style="height:40px;">
        	<p class="logzi">&nbsp;</p>    
        	<input name="提交" type="submit" class="btnbg" value="点击登录" />
      </div>
      
      <!-- <div>
        <a href="#" class="more">注册</a>
      </div> -->
   </div>
   </form>
</div>
<p style="height:100px;"></p>
<p align="center">技术支持:xxxxxxxxxx</p>
</div>
<script type="text/javascript">
function checkForm(){
	var username =$("#username").val();
	var password =$("#password").val();
	if($.trim(username)==null || $.trim(username)==""){
		$("#error").html("用户名不能为空！");
		$("#username").focus();
		return false;
	}
	if($.trim(password)==null || $.trim(password)==""){
		$("#error").html("密码不能为空！");
		$("#password").focus();
		return false;
	}
	return true;
}


</script>

</body>
</html>
